<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>企业综合管理运营平台系统-登录</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/jquery-1.4.4.min.js"></script>
<script>
	var msg="${msg}";
	if(msg!=""){
		alert(msg);
	}
	
	if(window.top!=window.self){
		parent.window.location="login.jsp";
	}
	
	$(function(){
	var _select=$('.select');
		_select.click(function(){
			$(this).find('ul').show();
		})

		$('.select li').click(function(){
			var eid=$(this).attr('eid');
			var eid_input='<input type="hidden" value="'+eid+'" name="eid" id="eid" \/>';
			var _eidhtml=$(this).html();
			$('.eid_value').html(_eidhtml);
			if($('#eid').attr('value')){
				$('#eid').attr('value',eid);	
			}
			
		})
		$('.select ul').hover(function(){
			
		},function(){
			$(this).hide();
		})
	});
	function check(){
		if($("#txtuid").val()==""){
			alert("请输入用户名！");
			return false;
		}
		if($("#txtpwd").val()==""){
			alert("请输入密码！");
			return false;
		}
		if($("#txtcode").val()==""){
			alert("请输入验证码！");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
<form action="emp!login" method="post" onsubmit="return check();">
	<div class="login">
		<div class="login_form">
			<div class="login_info">
				<div class="login_info_title">选择登录版本：</div>
				<div class="select">
					<p class="eid_value">中文版</p>
					<ul>
						<li eid="english">English</li>
						<li eid="chinese">中文版</li>
					</ul>
					<input type="hidden" value="chinese" name="eid" id="eid" />
				</div>
			</div>
			<div class="form_info">
				<div class="field">
					<label>用户名：</label>
					<input id="txtuid" name="emp.loginid" type="text" class="text" size="20">
				</div>
				<div class="field">
					<label>密　码：</label>
					<input id="txtpwd" name="emp.pwd" type="password" class="text" size="20">
				</div>
				<div class="field">
					<label>验证码：</label>
					<input id="txtcode" name="code" type="text" class="text" size="10">
                    <img src="code.jsp" align="absmiddle" alt="点击刷新" onclick="this.src='code.jsp'" />
				</div>
				<div class="field">
					<label></label>
					<button class="button" style="margin-left:50px;_margin-left:48px" type="submit"></button>
				</div>
			</div>
		</div>
	</div>
</form>
</body>
</html>
